package com.shopping_center.management.service.impl;

import com.shopping_center.management.mapper.SystemMapper;
import com.shopping_center.management.service.SystemService;
import com.shopping_center.management.system.model.UserInfo;
import com.shopping_center.management.system.model.UserMenu;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author YeFeng
 * @date 2023/3/2
 */
@Service
public class SystemServiceImpl implements SystemService {

    @Autowired
    private SystemMapper systemMapper;

    @Override
    public List<UserMenu> selectUserMenuByUserId(String userId) {
        return systemMapper.selectUserMenuByUserId(userId);
    }

    @Override
    public UserInfo login(UserInfo userInfo) {
        return systemMapper.login(userInfo);
    }

    @Override
    public String selectUserIdByUserName(String username) {
        return systemMapper.selectUserIdByUserName(username);
    }
}
